<link rel="stylesheet" href="<?php echo TEMPLATES_PATH;?>/css/university.css" />
</head>
<header class="layout head padding-small">
    <a href="javascript:pageBack();" class="hBack float-left"></a>
    <h4 class="hTxt float-left text-center text-white">视频搜索</h4>
    <a href="javascript:;" id="btnJdkey" class="hHlep float-right"></a>
</header>
<div class="main_content">
	<div class="banner layout">
        <a href="index.php?act=university_index&op=index"><img src="<?php echo TEMPLATES_PATH;?>/images/banner.jpg" alt="" class="layout"></a>
    </div>
    
    <!--<form class="layout padding">
        <div class="v-search radius-big bg-white clearfix">
        	<input type="text" class="x9 padding sInp border-none " placeholder="请输入您要学习的视频名称">
            <button type="button" class="x3 sBtn bg-red border-none text-white padding">搜索</button>
        </div>
    </form>-->
     	<form id="searchForm" method="post" >
        <div class="form-group margin-top">
            <div class="field">
              <div class="input-group">
        		  <input type="hidden" name="act" value="university_index">
        		  <input type="hidden" name="op" value="Search_stow_goods">      
                  <input type="text" class="input" name="search_shop_id"  id="search_shop_id" value="<?php echo $output['search_shop_id']?>" size="50" placeholder="请输入您要学习的视频名称" />
                  <span class="addbtn"><button type="button" onclick="javascript:osnSubmit();" class="button icon-search"></button></span>
              </div>
            </div>
        </div>
    </form> 
    
    <div class="layout margin-bottom v-floot">
    	<ul class="v-list clearfix">
    		 	<?php if(!empty($output['lesson_list']) && is_array($output['lesson_list'])){?>
        <?php foreach ($output['lesson_list'] as $_k => $_v) {?>
    	  <li class="x6 padding-small">
          	<a href="index.php?act=university_detail&op=index&study_id=<?php echo $_v['study_id']?>" class=" padding-small radius-big bg-white ">
            	<div class="v-img">
                	<img src="<?php echo $_v['study_photo']?>" alt="" class="layout border-none layout">
                    <div class="v-play layout"></div>
                </div>
                <h3 class="text-small v-mane"><?php echo $_v['title']?></h3>
                <div class="height">
                	<span class="text-green"><span class="text-red"><?php if($_v['study_price']==0 && $_v['study_points']!=0){
                    		echo "积分".$_v['study_points'];
                    	}else if($_v['study_price']==0 && $_v['study_points']==0){
                    		echo "免费";
                    	} else{
                    		echo "￥".$_v['study_price'];
                    	}
                    	?></span></span><!-- 如需购买观看的，class类为text-red -->
                    <br>
                    <span class="text-red"><?php echo intval(universityModel::study_total($_v['study_id']))?></span>人在学习
                </div>
            </a>
          </li>
          <?php }}?>
		</ul>
    </div>
	<div class="v-footer">
    	<img src="<?php echo TEMPLATES_PATH;?>/images/footer.png" alt="" class="layout">
    </div>
</div>
<script type="text/javascript">
	$(function(){
		$('.v-play').height($('.v-img').height());
		$('.v-floot').eq(0).find('.title-txt').css('padding','5px 15px 5px 40px');
	})
		//商品搜索表单提交
	function osnSubmit(){
		$("#searchForm").submit();
	}
</script>